export const isPermission = (value) => {
  const permissionsData = window.BTN_AUTH || [];
  if (value && value instanceof Array && value?.length > 0) {
    const permissions = value;
    const hasPermission = permissionsData.some((role) => {
      return permissions.includes(role);
    });
    return hasPermission;
  }
};
